package com.xuanxu.blogs.module.user.exception;

import com.xuanxu.blogs.framework.common.exception.BlogsBaseException;
import com.xuanxu.blogs.module.user.enums.UserHttpStatusEnum;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author XuanXu
 * @version 1.0
 * @date 2024-08-20 16:33
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class UsernameOrPasswordErrorException extends BlogsBaseException {

    public UsernameOrPasswordErrorException() {
        super();
    }
    public UsernameOrPasswordErrorException(Integer status, String message) {
        super(status, message);
    }
    public UsernameOrPasswordErrorException(UserHttpStatusEnum httpStatus) {
        super(httpStatus.getStatus(), httpStatus.getMessage());
    }
}
